@echo on & color 0A

set VrNvNom=toto
set VrSimulation=_Simulation
set VrReel=_Reel

ren XXX_projet_Simulation.dep "%VrNvNom%%VrSimulation%".dep
ren XXX_projet_Reel.dep "%VrNvNom%%VrReel%%VrExtnFch%".dep

for %%i in (XXX_projet.*) do set VrChmFch=%%i& set VrExtnFch=%%~xi& call :renmFch
goto finRenmFch

:renmFch

ren "%VrChmFch%" "%VrNvNom%%VrExtnFch%"

goto :eof

:finRenmFch


pause>nul